// 万计数
 export const numberFormat = (num) => {
    return num > 9999 ? (num / 10000).toFixed(1) + '万' : num
  }
  
  // 时间格式
  export const timeFormat = (time)=>{
    const data = new Date(time)
    let y = data.getFullYear()
    let m = data.getMonth() + 1
    m = m>9?m:'0'+m
    let d = data.getDate()
    d = d>9?d:'0'+d
    return y+'.'+m+'.'+d
  }